import request from '@/utils/request'

// 查询背包列表
export function listBag(data) {
  return request({
    url: '/admin/bag/pageList',
    method: 'post',
    data: data
  })
}

// 查询背包详细
export function getBag(id) {
  return request({
    url: '/admin/bag/query/' + id,
    method: 'get'
  })
}

// 新增背包
export function addBag(data) {
  return request({
    url: '/admin/bag/add',
    method: 'post',
    data: data
  })
}

// 修改背包
export function updateBag(data) {
  return request({
    url: '/admin/bag/update',
    method: 'post',
    data: data
  })
}

// 删除背包
export function delBag(id) {
  return request({
    url: '/admin/bag/delete/' + id,
    method: 'delete'
  })
}

// 导出背包
export function exportBag(query) {
  return request({
    url: '/admin/bag/export',
    method: 'get',
    params: query
  })
}
